import 'package:json_annotation/json_annotation.dart';
import 'package:zhaoxiaowu_app/models/accounting_info.dart';

part 'accounting.g.dart';

@JsonSerializable()
class Accounting {
  final List<AccountingInfo>? data;
  final String? date;
  final double? expenditure;
  final double? income;

  Accounting({
    this.data,
    this.date,
    this.expenditure,
    this.income,
  });

  factory Accounting.fromJson(Map<String, dynamic> json) => _$AccountingFromJson(json);
  Map<String, dynamic> toJson() => _$AccountingToJson(this);
}
